import Vue from 'vue'

const dailyAttendance = {
  state: () => ({
    currentTask: {}
  }),
  mutations: {
    setDailyAttendanceCurrentTask(state, payload) {
      state.currentTask = payload
    }
  },
  actions: {
    initDailyAttendanceStorage({ getters }) {
      const dailyAttendanceStorage = Vue.prototype.$storage.daily_attendance
      dailyAttendanceStorage.init(getters.studentId)
    }
  }
}

export default dailyAttendance
